<?php
/**
 * PHP Framework Seo Product Uri class
 *
 * @author Andrew <andrew@vitche.com>
 * @author Frozen Rain <frozenrain@mail.ru>
 **/
class ProductUri extends FriendlyUri {

    public static function buildWithProduct($Product) {

        $result = '';
        $result .= FriendlyUri::buildFriendlyString($Product->name);
        $result .= '-p' . $Product->id . '.html';
        return $result;
    }
}
?>